﻿using MDPM.Foundation.SpecificationsForEntityModel;
using Microsoft.AspNetCore.Identity;
using System;
using System.Collections.Generic;
using System.Text;

namespace MDPM.EntitiyModels.RoleAndUser
{
    /// <summary>
    /// 角色组实体类
    /// </summary>
    public class ApplicationRole:IdentityRole<Guid>,IEntity
    {
        public string Description { get; set; }                 //角色组权限描述
        public virtual ApplicationRole ParentRole { get; set; } //上级用户组
        public ApplicationRole():base()
        {
            this.Id = Guid.NewGuid();
         }
        public ApplicationRole(string roleName) : base(roleName)
        {
            this.Id = Guid.NewGuid();
            this.Name = roleName;
        }
        
    }
}
